<form name=formProjetoSistema role="form" id="formProjetoSistema" >

    <div class="form-inline margin-bottom-10">



        <div class="form-group">
            <label for="sistema">Sistema</label>
            <span class="glyphicon glyphicon-asterisk obrigatorio"></span> <br />
            <select name="sistema" id="sistema" ng-model="idSistema" class="form-control required">
                <option value="" ng-selected="objSelecionadoProSis.sistema.id === 0"></option>
                <option ng-repeat="objsis in comboSistema" value="{{objsis.id}}" ng-selected="objSelecionadoProSis.sistema.id === objsis.id">{{objsis.nome}}</option>
            </select> 
        </div>
        <div class="form-group">
            <label for="licensasSistema">
                Licensas do Sistema</label>
            <span class="glyphicon glyphicon-asterisk obrigatorio"></span><br />
            <input type="licensasSistema" class="form-control required" id="licensasSistema" name="nome" ng-click="calcLicProSis()" ng-model="objSelecionadoProSis.licensasSistema" />
        </div>
        <div class="form-group">
            <label for="validação">
                Validação</label><br />
            <input type="validação" id="validação" name="nome" ng-model="objSelecionadoProSis.validacao" class="form-control"/>
        </div>
        <div class="form-group">
            <label for="tipoAutenticacao">
                Tipo Autentificação</label><br />
            <select name="tipoAutenticacao" id="tipoAutenticacao" ng-model="tpAutent" class="form-control">
                <option value=""></option>
                <option value="BD">BD</option>
                <option value="AD">AD</option>
            </select>
        </div>
       
    </div>
    <!--
    Botao adicionar sistema
    -->
     <a ng-click="salvarProSis()" class="btn btn-success" 
       ng-show="objSelecionado.id > 0"><span class="glyphicon glyphicon-plus">
        </span> Adicionar</a>

    <br />

    <div class=" table-responsive">
        <table class="table table-striped table-bordered lista">
            <thead>
                <tr>
                    <th class="fundo_cinza">Sistemas</th>
                    <th class="fundo_cinza">Licensas do Sistema</th>
                    <th class="fundo_cinza">Validação</th>
                    <th class="fundo_cinza">Tipo Autentificação</th>
                    <th class="fundo_cinza" colspan="1">Opções</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="proSis in projetosProSis| orderBy:orderProp:orderOption">
                    <!-- repeat de ocorrencias in ocorrencia-->
                    <td class="col-md-6" >
                        <a>{{proSis.sistema.nome}}</a>
                    </td>
                    <td class="col-md-6" >
                        <a>{{proSis.licensasSistema}}</a>
                    </td>
                    <td class="col-md-6" >
                        <a>{{proSis.validacao}}</a>
                    </td>
                    <td class="col-md-6" >
                        <a>{{proSis.tipoAutenticacao}}</a>
                    </td>


                    <td title="Excluir" class="opcoes">
                        <a ng-click="excluirProSis(proSis)" class="btn btn-danger" data-dismiss="modal"><i class="glyphicon glyphicon-remove">
                            </i></a>
                    </td>

                </tr>
            </tbody>
        </table>
    </div>          
</form>
